package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.SysDept;
import com.woniuxy.mesboot.mapper.SysDeptMapper;
import com.woniuxy.mesboot.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：lisir
 * @date ：Created in 2023/5/27 11:33
 * @description：TODO
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private SysDeptMapper deptMapper;

    @Override
    public int insertSelective(SysDept record) {
        return deptMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return deptMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysDept record) {
        return deptMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public SysDept selectByPrimaryKey(Long id) {
        return deptMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SysDept> selectAll() {
        return deptMapper.selectAll();
    }
}
